package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {

    //分页查询
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);

    //保存套餐
    void save(Setmeal setmeal);

    //删除套餐
    void deleteByIds(Long[] ids);

    //起售 停售
    void updateByIds(Long[] ids, Integer status);

    //回显套餐信息
    Setmeal findById(long id);

    //修改
    void update(Setmeal setmeal);

    //根据分类id查询套餐列表
    List<Setmeal> findByCategoryId(Long categoryId, Integer status);

    //查询指定套餐的菜品列表
    List<Dish> getmealDish(Long id);
}
